package com.zxh.mall.ware.feign;

import com.zxh.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhengxh
 * @version 1.0
 * @date 2024/4/22 - 04 - 22 - 20:03
 * @description com.zxh.mall.ware.feign
 */
@FeignClient("mall-product")
public interface ProductFeignService {
    /**
     * 当然我们也可以通过网关来调用商品服务
     * @param skuId
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    //@RequiresPermissions("product:skuinfo:info")
    public R info(@PathVariable("skuId") Long skuId);
}
